home *** CD-ROM | disk | FTP | other *** search
/ IRIX 6.5 Complementary Applications 2004 May / SGI IRIX 6.5 Complementary Applications 2004 May.iso / dist / OpenOffice.idb / usr / OpenOffice / help / en / sbasic.jar / text / sbasic / common / 01040000.xml < prev    next >
Encoding:
Extensible Markup Language  |  2002-01-24  |  13.1 KB  |  168 lines

  1. <?xml version="1.0" encoding="utf-8"?>
  2. <html><head><title>Additional Options</title><meta name="filename" content="text/sbasic/common/01040000"/><meta name="language" content="en-US"/><help:css-file-link xmlns:help="http://openoffice.org/2000/help"/><!--The CSS style header method for setting styles--><style type="text/css">
  3.  
  4.         table.Tabelle2{
  5.                 margin-left:0cm; margin-right:0.005cm;}
  6.         span.Tabelle2A{
  7.                 width:5.046cm;}
  8.         span.Tabelle2B{
  9.                 width:12.949cm;}
  10.         td.Tabelle2A1{
  11.                 }
  12.         td.Tabelle2B1{
  13.                 }
  14.         td.Tabelle2A2{
  15.                 }
  16.         td.Tabelle2B2{
  17.                 }
  18.         td.Tabelle2A17{
  19.                 }
  20.         td.Tabelle2B17{
  21.                 }
  22.         table.Tabelle1{
  23.                 }
  24.         span.Tabelle1A{
  25.                 width:1.499cm;}
  26.         span.Tabelle1B{
  27.                 width:16.501cm;}
  28.         td.Tabelle1A1{
  29.                 }
  30.         table.Tabelle3{
  31.                 }
  32.         span.Tabelle3A{
  33.                 width:18cm;}
  34.         p.P1{
  35.                 }
  36.         p.P2{
  37.                 }
  38.         p.P3{
  39.                 }
  40.         p.P4{
  41.                 }
  42.         span.T1{
  43.                 font-weight:bold;}
  44.         span.fr1{
  45.                 }
  46.         span.fr2{
  47.                 }
  48.         </style></head><body>
  49.    
  50.    
  51.    <help:to-be-embedded Eid="weitere" xmlns:help="http://openoffice.org/2000/help">
  52.    <p class="Head1"><help:link Id="66494">Additional Options</help:link></p>
  53.    <p class="Paragraph">The following describes several additional options provided by <help:productname>%PRODUCTNAME</help:productname>.</p>
  54.    </help:to-be-embedded>
  55.    <p class="Head2">Assigning Macros to Specific Program Events</p>
  56.    <p class="Paragraph">In any <help:productname xmlns:help="http://openoffice.org/2000/help">%PRODUCTNAME</help:productname> application you have the option of automatically executing a macro when a specified event occurs. First, though, you must assign the desired macro to the event. The possible events are available in all <help:productname xmlns:help="http://openoffice.org/2000/help">%PRODUCTNAME</help:productname> programs. The following table provides an overview of program events and at what point the assigned macro is executed.</p>
  57.    <table border="1" bordercolor="#000000" cellpadding="2" cellspacing="0" page-break-inside="page-break-inside:avoid"><tr class=""><th class="Tabelle2A1" style="text-align:left;"><span class="Tabelle2A">
  58.        <p class="TableHead">Event</p>
  59.       </span></th><th class="Tabelle2B1" style="text-align:left;"><span class="Tabelle2B">
  60.        <p class="TableHead">Macro (SUB) is automatically executed,...</p>
  61.       </span></th></tr><tr class=""><td class="Tabelle2A2" style="text-align:left;"><span class="Tabelle2A">
  62.       <p class="TextInTable">Program Start</p>
  63.      </span></td><td class="Tabelle2B2" style="text-align:left;"><span class="Tabelle2B">
  64.       <p class="TextInTable">...directly after a <help:productname xmlns:help="http://openoffice.org/2000/help">%PRODUCTNAME</help:productname> program is started.</p>
  65.      </span></td></tr><tr class=""><td class="Tabelle2A2" style="text-align:left;"><span class="Tabelle2A">
  66.       <p class="TextInTable">Program End</p>
  67.      </span></td><td class="Tabelle2B2" style="text-align:left;"><span class="Tabelle2B">
  68.       <p class="TextInTable">...immediately before a <help:productname xmlns:help="http://openoffice.org/2000/help">%PRODUCTNAME</help:productname> program is ended.</p>
  69.      </span></td></tr><tr class=""><td class="Tabelle2A2" style="text-align:left;"><span class="Tabelle2A">
  70.       <p class="TextInTable">Create Document</p>
  71.      </span></td><td class="Tabelle2B2" style="text-align:left;"><span class="Tabelle2B">
  72.       <p class="TextInTable">...directly after a new document is created with <span class="T1">File - New</span> or with the <span class="T1">New</span> icon.</p>
  73.      </span></td></tr><tr class=""><td class="Tabelle2A2" style="text-align:left;"><span class="Tabelle2A">
  74.       <p class="TextInTable">Open Document</p>
  75.      </span></td><td class="Tabelle2B2" style="text-align:left;"><span class="Tabelle2B">
  76.       <p class="TextInTable">...directly after a new document is opened with <span class="T1">File - Open</span> or with the <span class="T1">Open</span> icon.</p>
  77.      </span></td></tr><tr class=""><td class="Tabelle2A2" style="text-align:left;"><span class="Tabelle2A">
  78.       <p class="TextInTable">Save Document As</p>
  79.      </span></td><td class="Tabelle2B2" style="text-align:left;"><span class="Tabelle2B">
  80.       <p class="TextInTable">...immediately before a document is saved under a specified name (with <span class="T1">File - Save As</span>, or with <span class="T1">File - Save</span> or the <span class="T1">Save</span> icon, if a document name has not yet been specified).</p>
  81.      </span></td></tr><tr class=""><td class="Tabelle2A2" style="text-align:left;"><span class="Tabelle2A">
  82.       <p class="TextInTable">Document has been saved as</p>
  83.      </span></td><td class="Tabelle2B2" style="text-align:left;"><span class="Tabelle2B">
  84.       <p class="TextInTable">...directly after a document is saved under a specified name (with <span class="T1">File - Save As</span>, or with <span class="T1">File - Save</span> or with the <span class="T1">Save</span> icon, if a document name has not yet been specified).</p>
  85.      </span></td></tr><tr class=""><td class="Tabelle2A2" style="text-align:left;"><span class="Tabelle2A">
  86.       <p class="TextInTable">Save Document</p>
  87.      </span></td><td class="Tabelle2B2" style="text-align:left;"><span class="Tabelle2B">
  88.       <p class="TextInTable">...immediately before a document is saved with <span class="T1">File - Save</span> or the <span class="T1">Save</span> icon, provided that a document name has already been specified.</p>
  89.      </span></td></tr><tr class=""><td class="Tabelle2A2" style="text-align:left;"><span class="Tabelle2A">
  90.       <p class="TextInTable">Document has been saved</p>
  91.      </span></td><td class="Tabelle2B2" style="text-align:left;"><span class="Tabelle2B">
  92.       <p class="TextInTable">...directly after a document is saved with <span class="T1">File - Save</span> or the <span class="T1">Save</span> icon, provided that a document name has already been specified.</p>
  93.      </span></td></tr><tr class=""><td class="Tabelle2A2" style="text-align:left;"><span class="Tabelle2A">
  94.       <p class="TextInTable">Close Document</p>
  95.      </span></td><td class="Tabelle2B2" style="text-align:left;"><span class="Tabelle2B">
  96.       <p class="TextInTable">...directly before a document is closed.</p>
  97.      </span></td></tr><tr class=""><td class="Tabelle2A2" style="text-align:left;"><span class="Tabelle2A">
  98.       <p class="TextInTable">Document is being closed</p>
  99.      </span></td><td class="Tabelle2B2" style="text-align:left;"><span class="Tabelle2B">
  100.       <p class="TextInTable">...directly after a document is closed. <span class="T1">Note</span>: If the document was not saved since the last modification, and the user confirms the subsequent dialog with <span class="T1">Yes</span>, the "Save Document" event will automatically be executed as well.</p>
  101.      </span></td></tr><tr class=""><td class="Tabelle2A2" style="text-align:left;"><span class="Tabelle2A">
  102.       <p class="TextInTable">Activate Document</p>
  103.      </span></td><td class="Tabelle2B2" style="text-align:left;"><span class="Tabelle2B">
  104.       <p class="TextInTable">...directly after a document is brought to the foreground either with the corresponding entry in the Window menu, or with the key combination <help:switch select="System" xmlns:help="http://openoffice.org/2000/help"><help:case select="MAC">(Command)</help:case><help:default>(Ctrl)</help:default></help:switch> (Tab).</p>
  105.      </span></td></tr><tr class=""><td class="Tabelle2A2" style="text-align:left;"><span class="Tabelle2A">
  106.       <p class="TextInTable">Deactivate Document</p>
  107.      </span></td><td class="Tabelle2B2" style="text-align:left;"><span class="Tabelle2B">
  108.       <p class="TextInTable">...directly after another document is brought to the foreground either with the corresponding entry in the Window menu, or with the key combination <help:switch select="System" xmlns:help="http://openoffice.org/2000/help"><help:case select="MAC">(Command)</help:case><help:default>(Ctrl)</help:default></help:switch> (Tab).</p>
  109.      </span></td></tr><tr class=""><td class="Tabelle2A2" style="text-align:left;"><span class="Tabelle2A">
  110.       <p class="TextInTable">Print Document</p>
  111.      </span></td><td class="Tabelle2B2" style="text-align:left;"><span class="Tabelle2B">
  112.       <p class="TextInTable">...directly after the <span class="T1">Print</span> dialog is closed, but before the actual print process begins.</p>
  113.      </span></td></tr><tr class=""><td class="Tabelle2A2" style="text-align:left;"><span class="Tabelle2A">
  114.       <p class="TextInTable">JavaScript run-time error</p>
  115.      </span></td><td class="Tabelle2B2" style="text-align:left;"><span class="Tabelle2B">
  116.       <p class="TextInTable">... when a JavaScript run-time error occurs.</p>
  117.      </span></td></tr><tr class=""><td class="Tabelle2A2" style="text-align:left;"><span class="Tabelle2A">
  118.       <p class="TextInTable">Print Mail Merge</p>
  119.      </span></td><td class="Tabelle2B2" style="text-align:left;"><span class="Tabelle2B">
  120.       <p class="TextInTable">...directly after the <span class="T1">Print</span> dialog is closed, but before the actual print process begins. This event occurs for each copy printed.</p>
  121.      </span></td></tr><tr class=""><td class="Tabelle2A17" style="text-align:left;"><span class="Tabelle2A">
  122.       <p class="TextInTable">Change of the page count</p>
  123.      </span></td><td class="Tabelle2B17" style="text-align:left;"><span class="Tabelle2B">
  124.       <p class="TextInTable">... when the page count changes.</p>
  125.      </span></td></tr><tr class=""><td class="Tabelle2A17" style="text-align:left;"><span class="Tabelle2A">
  126.       <p class="TextInTable">Message received</p>
  127.      </span></td><td class="Tabelle2B17" style="text-align:left;"><span class="Tabelle2B">
  128.       <p class="TextInTable">... if a message was received.</p>
  129.      </span></td></tr></table>
  130.    <p class="Paragraph"/>
  131.    <table><tr class=""><th class="Tabelle1A1" style="text-align:left;"><span class="Tabelle1A">
  132.        <p class="TextInTable"><draw:image draw:style-name="fr1" draw:name="HIND_1" text:anchor-type="paragraph" svg:width="0.847cm" svg:height="0.847cm" draw:z-index="0" xlink:href="65980" xlink:type="simple" xlink:show="embed" xlink:actuate="onLoad" draw:filter-name="GIF - Graphics Interchange" xmlns:draw="http://openoffice.org/2000/drawing" xmlns:text="http://openoffice.org/2000/text" xmlns:svg="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink"/></p>
  133.       </span></th><th class="Tabelle1A1" style="text-align:left;"><span class="Tabelle1B">
  134.        <p class="TextInTable">A macro assigned to an event will also be automatically executed if the respective event is provoked by a different macro!</p>
  135.       </span></th></tr></table>
  136.    <p class="Head3">Assigning a Macro to an Event</p>
  137.    <ul class="L1">
  138.     <li class="">
  139.      <p class="P2">Select the <span class="T1">Configure</span> command in the <span class="T1">Tools</span> menu and click the <text:s text:c="" xmlns:text="http://openoffice.org/2000/text"/>tab <span class="T1">Events</span>.</p>
  140.     </li>
  141.    </ul>
  142.    <table><tr class=""><th style="text-align:left;"><span class="Tabelle3A">
  143.        <p class="TextInTable"><draw:image draw:style-name="fr2" draw:name="Grafik2" text:anchor-type="paragraph" svg:width="12.801cm" svg:height="10.194cm" draw:z-index="1" xlink:href="66844" xlink:type="simple" xlink:show="embed" xlink:actuate="onLoad" draw:filter-name="GIF - Graphics Interchange" xmlns:draw="http://openoffice.org/2000/drawing" xmlns:text="http://openoffice.org/2000/text" xmlns:svg="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink"/></p>
  144.       </span></th></tr></table>
  145.    <p class="Paragraph"/>
  146.    <ul class="L2">
  147.     <li class="">
  148.      <p class="P3">From the <span class="T1">Event</span> list box, select the type of event.</p>
  149.     </li>
  150.     <li class="">
  151.      <p class="P3">In the <span class="T1">Macro</span> list box at the left, select the object (document, template, or application) which contains the macro you want to assign to an event.</p>
  152.     </li>
  153.     <li class="">
  154.      <p class="P3">In the <span class="T1">Macro</span> list box at the right, select the desired macro (SUB).</p>
  155.     </li>
  156.     <li class="">
  157.      <p class="P3">Confirm your selection with <span class="T1">OK</span>.</p>
  158.     </li>
  159.    </ul>
  160.    <p class="Head3">Removing a Macro Assigned to an Event</p>
  161.    <ul class="L3">
  162.     <li class="">
  163.      <p class="P4">In the dialog (see above) select the event for which you want to remove the macro assignment, and click <span class="T1">Remove</span>.</p>
  164.     </li>
  165.    </ul>
  166.    <p class="Head2">Assigning a Macro to a Toolbar, Key Combination or Pull-Down Menu</p>
  167.    <p class="Paragraph">In any <help:productname xmlns:help="http://openoffice.org/2000/help">%PRODUCTNAME</help:productname> application you can assign a macro (as well as any <help:productname xmlns:help="http://openoffice.org/2000/help">%PRODUCTNAME</help:productname> Basic project) to certain toolbars, define a key combination to execute a macro, or start a macro with a pull-down menu entry. Select <span class="T1">Tools - Configure</span> and click the respective tab, where you can make the desired settings.</p>
  168.   </body></html>